<?php
require_once 'phpmoko/lib/common.php';

require_once 'phpmoko/externals/JHeaderBar.php';
require_once 'phpmoko/ui/Widget.php';

class HeaderBar extends Panel
{

	function __construct()
	{
		parent::__construct();

		JHeaderBar::activate();
	}

	function toString()
	{
		$str = '<div style="height: ' . $this->getHeight() . 'px">';
		$str .= '<div id="headerbar" style="height: ' . $this->getHeight() . 'px">';
		foreach ($this as $widget)
			$str .= Widget::toStringSafe($widget);
		$str .= '</div>';
		$str .= '</div>';
		return $str;
	}
}
?>